package org.jinyan.d20140410;

public class Egg {
	private String id;
	private String type;
	private double weight;
	private double price;

	public Egg(String id, String type, double weight, double price) {
		super();
		this.id =id;
		this.type = type;
		this.weight = weight;
		this.price = price;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public double getWeight() {
		return weight;
	}

	public void setWeight(double weight) {
		this.weight = weight;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getId() {
		return id;
	}

	@Override
	public String toString() {
		return "Egg [id=" + id + ", type=" + type + ", weight=" + weight
				+ ", price=" + price + "]";
	}


}
